package com.sy.service.Impl;

import com.sy.mapper.PersonalMapper;
import com.sy.service.PersonalService;
import com.sy.vo.PersonalVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zbbstart
 * @date 2021/1/14 - 18:24
 */
@Service
public class PersonalServiceImpl implements PersonalService {
    @Autowired
    private PersonalMapper personalMapper;

    @Override
    public boolean updatePersonalInfo(PersonalVo personalVo) {
        return personalMapper.updatePersonalInfo(personalVo);
    }

    @Override
    public void updateLoginTime(String userName) {
        personalMapper.updateLoginTime(userName);
    }

    @Override
    public void updateUserExp(String userName) {
        personalMapper.updateUserExp(userName);
    }

    @Override
    public void updateHeadPhoto(String headphoto, String userName) {
        personalMapper.updateHeadPhoto(headphoto,userName);
    }
}
